Using the C++ Standard Template Libraries by Ivor Horton

Using the C++ Standard Template Libraries by Ivor Horton

Author:Ivor Horton
Language: eng
Format: epub, pdf
Publisher: Apress, Berkeley, CA


Operations on Sets

The mathematical concept of a set is very like that of a set container – it’s a collection of things that are alike in some way. There are binary operations on sets defined that combine the contents of two sets in various ways to produce another set. Figure 5-6 illustrates these, and shows the following: Two examples of sets A and B that contain integers.

The union of the sets A and B is the set of elements that belongs to either or both sets.

The intersection of the sets A and B is the set of elements that are common to both.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.